package com.itheima.list;

import java.util.ArrayList;

public class Demo01 {

    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();


        list.add("abc");
        list.add("bcd");
        list.add("def");
        list.add("ghi");

        list.add(1,"jkl");

        list.remove(2);


        list.set(3,"aaa");


        String s = list.get(0);
        System.out.println(s);


    }
}
